﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HBKY.Shop.Model
{
    public class UserInfo
    {
        public int UserID { get; set; }
        public string UserName { get; set; }

        public int NeedResetPwd { get; set; }
        /// <summary>
        /// 临时token用于重置密码
        /// </summary>
        public string ResetToken { get; set; }

        public string UserToken { get; set; }
        /// <summary>
        /// 渠道ID
        /// </summary>
        public int ChannelBaseId { get; set; }
        /// <summary>
        /// 子渠道ID
        /// </summary>
        public int ChannelId { get; set; }

        public int AccountType { get; set; }

        public int Expire { get; set; } = 7 * 24 * 3600;
        /// <summary>
        /// 子渠道名
        /// </summary>
        public string ChannelName { get; set; }
        /// <summary>
        /// 子渠道来源代码
        /// </summary>
        public string ChannelSource { get; set; }
        /// <summary>
        /// 分享链接
        /// </summary>
        public string ShareLink { get; set; }

    }

    public static class Role
    {
        /// <summary>
        /// 未修改密码
        /// </summary>
        public const string Uninit = "0";
        /// <summary>
        /// 渠道管理员
        /// </summary>
        public const string Admin = "1";
        /// <summary>
        /// 普通渠道
        /// </summary>
        public const string Agent = "2";
    }
}
